package com.cg.ndktest;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    static {
        System.loadLibrary("ndkdemo");
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        TextView mTextView=new TextView(this);
        NdkUtils ndkUtils=new NdkUtils();
        mTextView.setText(ndkUtils.getStringFromC());

        setContentView(mTextView);
    }
}
